#include<stdio.h>
#include<stdlib.h>

//#define EOF -1
//#define EXIT_SUCCESS 0

int main()
{

	FILE *fin,*fout;
	fin=fopen("A.txt","r");
	fout=fopen("B.txt","w");

	char line[1024];
	while(fgets(line,1000,fin))
		{
		    fputs(line,fout);
		    puts(line);
		}

	fclose(fin);
	fclose(fout);
	return EXIT_SUCCESS;

}
